import axios from '@/utils/request'


export function login(username, password) {
  return request({
    url: '/sys/suser/login?username='+username+'&password='+password,
    method: 'post'
  })
}

export function getInfo(token) {
  return request({
    url: '/sys/suser/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/sys/suser/logout',
    method: 'post'
  })
}
